﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using YouWei.Utility;

namespace YouWei.Infrastructure
{
    /// <summary>
    /// 系统配置工具类
    /// </summary>
    public class AppSettings
    {
        /// <summary>
        /// 是否在支付调试模式，是的话，支付金额始终为0.01
        /// </summary>
        public static bool IsInTestMode => EConvert.ToBoolean(ConfigHelper.GetAppSettingValue("IsInTestMode"));
        /// <summary>
        /// 贵州车乐行接口Url地址
        /// </summary>
        public static string ApiCheLeXingUrl => ConfigHelper.GetAppSettingValue("ApiCheLeXingUrl");
        /// <summary>
        /// 贵州车乐行接口Key
        /// </summary>
        public static string ApiCheLeXingKey => ConfigHelper.GetAppSettingValue("ApiCheLeXingKey");
        /// <summary>
        /// 车乐行数据接口缓存时间(分)
        /// </summary>
        public static int CheLeXingDataCacheTime => ConfigHelper.GetInt("CheLeXingDataCacheTime");

    }
}
